cmake_minimum_required(VERSION 3.8)
set(PROJ Kaleidoscope-Ch3)

set(LLVM_DIR C:/chenchang/dev/llvm)

add_executable(${PROJ}
    toy.cpp
    )

set(LLVM_INCLUDE ${LLVM_DIR}/include ${LLVM_DIR}/build/include)
target_include_directories(${PROJ} PUBLIC
    ${LLVM_INCLUDE}
    )

set(LLVM_LIB ${LLVM_DIR}/build/Debug/lib)
target_link_libraries(${PROJ}
    ${LLVM_LIB}/LLVMCore.lib
    ${LLVM_LIB}/LLVMSupport.lib
    )
